package heap;

import java.util.HashMap;

public class HeapRegistry {

	private HashMap<Integer, Integer> startToEndPoint = new HashMap<Integer, Integer>();
	
	public void putEndPoint(int startPoint, int endPoint) {
		startToEndPoint.put(startPoint, endPoint);
	}
	
	public int getEndPoint(int startPoint) {
		return this.startToEndPoint.get(startPoint);
	}
	
	public int getlengthOfObject(int startPoint) {
		return startToEndPoint.get(startPoint)-startPoint;
	}
	
}
